
'unit tests for TGameState

Type GameStateTest Extends TTest

	Field g:GameStateMock
	
	Method Before() {before}
		g = New GameStateMock
	End Method
	
	Method After() {after}
		g = Null
	End Method
	
	Method Constructor() {test}
		g = New GameStateMock
		assertNotNull(g, "could not create gamestate")
	End Method
	
	Method Create() {test}
'		g = GameStateMock.Create(Null)
'		assertSame()
	End Method
	
	
	Method SetGame() {test}	
		Local game:TGameMock = New TGameMock
		g.SetGame(game)		
		assertSame(game, g.GetGame())	
	End Method
	
	
	Method SetId() {test}
		g.SetId(10)
		assertEqualsI(10, g.GetId())
	End Method

End Type

